package com.example.victory.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

/**
 * 客户全景-资产统计
 */
@ApiModel(description = "客户全景-资产统计")
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class AssetStatistics   {
  @JsonProperty("name")
  private String name = null;

  @JsonProperty("value")
  private String value = null;

  @JsonProperty("color")
  private String color = null;

  public AssetStatistics name(String name) {
    this.name = name;
    return this;
  }

  /**
   * 资产类型
   * @return name
  **/
  @ApiModelProperty(example = "期初资产", value = "资产类型")


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public AssetStatistics value(String value) {
    this.value = value;
    return this;
  }

  /**
   * 值
   * @return value
  **/
  @ApiModelProperty(example = "12345623", value = "值")


  public String getValue() {
    return value;
  }

  public void setValue(String value) {
    this.value = value;
  }

  public AssetStatistics color(String color) {
    this.color = color;
    return this;
  }

  /**
   * 颜色
   * @return color
  **/
  @ApiModelProperty(example = "#FFF", value = "颜色")


  public String getColor() {
    return color;
  }

  public void setColor(String color) {
    this.color = color;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    AssetStatistics assetStatistics = (AssetStatistics) o;
    return Objects.equals(this.name, assetStatistics.name) &&
        Objects.equals(this.value, assetStatistics.value) &&
        Objects.equals(this.color, assetStatistics.color);
  }

  @Override
  public int hashCode() {
    return Objects.hash(name, value, color);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class AssetStatistics {\n");
    
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    value: ").append(toIndentedString(value)).append("\n");
    sb.append("    color: ").append(toIndentedString(color)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

